﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace EasyMvc.Web.Common
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false)]
    public class PermissionAttribute : Attribute
    {
        public EnumViewPermission[] Allow { get; private set; }
        
        public PermissionAttribute(params EnumViewPermission[] allow)
        {
            this.Allow = allow;
        }
    }
}